<%@ page contentType="text/html; charset=utf-8" 
    pageEncoding="utf-8"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜单列表</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.11.0.js"></script>
<script type="text/javascript">
</script>
</head>

<body>

<a href="${pageContext.request.contextPath}/LoginShopCar">进入购物车</a>
<c:forEach items="${food}" var="u">
 <form action="${pageContext.request.contextPath}/DoCarServlet?&action=add&id=${u.fid}&name=${u.fname}&price=${u.fprice}" method="post">
 <table>
  <tr>
   <td>${u.fname}</td>
   <td>${u.fprice}</td>
   <td><input type="submit" value="添加进购物车" id="btn" /></td>
  </tr>
  </table>
  </form>
  </c:forEach>
</body>
</html>
